{{ define "content"}}
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  <meta http-equiv="x-ua-compatible" content="ie=edge" />
  <title>博客</title>

  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css" />
  <!-- Google Fonts Roboto -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" />
  <!-- MDB ESSENTIAL -->
  <link rel="stylesheet" href="/css/mdb.min.css" />
  <!-- MDB PLUGINS -->
  <link rel="stylesheet" href="/css/all.min.css" />
<style>
  .updateDiv{
    box-sizing: content-box;
    padding: 5%;
    margin-top: 5rem;
    /* border: 1px solid black; */
  }
  .updateDiv h3{
    margin-bottom: 1.5rem;
  }
</style>
</head>

<body>
 
<div class="container updateDiv shadow-3-strong" style="width: 50%;">
  <h3>修改帖子</h3>
  <form action="/up" method="post">
    <div class="form-outline mb-4 ">
      <input type="text" id="Title" class="form-control" name="UpPostTitle"
        value="{{ .Post.Title }}"/>
      <label class="form-label" for="Title">标题</label>
      <div class="invalid-feedback"></div>
      <div class="valid-feedback">验证通过</div>
    </div>


    <div class="form-outline mb-4">
      <textarea name="UpPostContent" id="Content" rows="10"
class="form-control">{{ .Post.Content }}</textarea>
      <label class="form-label" for="Content">内容</label>
      <div class="valid-feedback">验证通过</div>
      <div class="invalid-feedback"></div>
    </div>
    <input type="text" style="display: none;" name="pid" value="{{ .Post.Pid }}">
    <!-- Submit button -->
    <button type="submit" class="btn btn-primary px-3 me-2" >修改</button>
  </form>
</div>
    

      
        
         
         
        
<script type="text/javascript" src="/js/mdb.min.js"></script>
<!-- MDB PLUGINS -->
<script type="text/javascript" src="/js/all.min.js"></script>

<!-- MDB -->
<script
  type="text/javascript"
  src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.2.0/mdb.min.js"
></script>
</body>
</html>
{{ end }}
